package com.wframe.project.jnd.rest.util;

public class ClientException extends Exception{

    private String code;
    
    public ClientException() {
    }

    public ClientException(String message) {
        super(message);
    }
    public ClientException(CodeEnum code) {
        super(code.getName());
        this.code=code.getCode();
    }
    public ClientException(String message,String code) {
        super(message);
        this.code=code;
    }

    public ClientException(String message, Throwable cause) {
        super(message, cause);
    }

    public ClientException(Throwable cause) {
        super(cause);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
